<section class="content-header">
	<h1> Management <small>Job messages</small></h1>
	<ol class="breadcrumb">
		<li>
			<a href="<?php echo base_url();?>"><i class="fa fa-dashboard"></i> Home</a>
		</li>
		<li>
			<a href="#">Management job messages</a>
		</li>
		<li class="active">
			List all job messages
		</li>
		
	</ol>
</section>

<!--<div class="row content">
		<div class="col-xs-12">
			
<div class="alert alert-success alert-dismissable">
		        	<i class="fa fa-check"></i>
		             	<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
		                <b>Alert!</b> Success alert preview. This alert is dismissable.
		        </div>
		        
		     </div>
		  </div>-->
<!-- Main content -->
<section class="content">
	<div class="row">
		<div class="col-xs-12">
			<div class="box">
				<div class="box-header">
					<h3 class="box-title">List all job messages </h3>
						<a href="<?php echo base_url();?>control-job-ads/insert-job-ads"><button type="button" class="btn btn-primary pull-right" style="margin-right: 10px; margin-top: 5px;"><span class="glyphicon glyphicon-plus"></span> Add New</button></a>
				</div><!-- /.box-header -->
				<div class="box-body table-responsive">
					<table id="example2" class="table table-bordered table-hover">
						<thead>
							<tr>
								<th>Title</th>
								<th>Employer</th>
								<th>Posted Date</th>
								<th>Expired Date</th>
								<th>Action</th>
							</tr>
						</thead>
						<tbody>
							<?php
								
								foreach($job_ads as $job){
									$id=$job->job_ads_id;
									$title=$job->title;
									$posted_date=$job->created_date;
									$expired_date=$job->date_available;
									$salary=$job->salary;
									$active=($job->status == '1' )? 'YES' : 'NO';
									
							?>
									<tr>
										
										<td><?php echo $title;?></td>
										<td><?php echo "chivorn";?></td>
										<td><?php echo $posted_date;?></td>
										<td><?php echo $expired_date;?></td>
										<td align="center">
											<a href="<?php echo base_url();?>control-job-ads/update-job-ads/<?php echo $id;?>"  class="btn btn-sm btn-primary" title="Update"><span class="glyphicon glyphicon-edit"></span> Edit</a>
											<a href="<?php echo base_url();?>control-job-ads/delete-job-ads/<?php echo $id;?>" class="btn btn-sm btn-danger" onclick="return confirm('Are you sure want to delete ?');" title="Delete"><span class="glyphicon glyphicon-trash"></span> Delete</a>
										</td>
									</tr>
							<?php
								
								}
							?>
							
						</tbody>
						<tfoot>
							<tr>
								<th>Title</th>
								<th>Employer</th>
								<th>Posted Date</th>
								<th>Expired Date</th>
								<th>Action</th>
							</tr>
						</tfoot>
					</table>
				</div><!-- /.box-body -->
			</div><!-- /.box -->

			
		</div>
	</div>

</section><!-- /.content -->
